package com.kpatil.erp.core.measure;


/**
 * Representation of quantity
 * 
 * @author kpatil
 * 
 */
public interface Quantity {

	/**
	 * Returns numeric representation of quantity
	 * 
	 * @return
	 */
	double get();

	/**
	 * set value
	 * 
	 * @param quantity
	 */
	void set(double quantity);

	/**
	 * returns {@link UnitOfMeasure} with which quantity is realized
	 * 
	 * @return
	 */
	UnitOfMeasure getUnit();

	/**
	 * Set {@link UnitOfMeasure}
	 * 
	 * @param unit
	 */
	void setUnit(UnitOfMeasure unit);
}
